package com.ai.exam.controller;

import com.ai.exam.dto.WxModel;
import com.ai.exam.service.ClickRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Date:  2018/6/1
 * Time:  12:53
 * Email: siy@hmgsoft.com
 * Created by siy
 */
@RestController
@RequestMapping("record")
@Api(value = "点击记录接口",tags = {"点击记录管理"})
public class ClickController {

    @Resource
    private ClickRecordService clickRecordService;

    //点击记录
    @PostMapping("click")
    @ApiOperation(value = "用户被助力（领取流量）" ,notes = "参数：clickTyep点击按钮（record_dic表的d_key字段），openId，telnum")
    public void onClick(@RequestBody WxModel wxModel){
        clickRecordService.onClick(wxModel);
    }


}
